#include "stdafx.h"
#include <iostream>
#include <cstdlib>
#include "freeglut\include\GL\freeglut.h"

typedef enum
{
	WHITE, RED, ORANGE, GREEN, BLUE, YELLOW
} Color;

#define DIR_N 0
#define DIR_W 1
#define DIR_S 2
#define DIR_E 3

#define POS_U (0)
#define POS_D (1)
#define POS_L (2)
#define POS_R (3)
#define POS_F (4)
#define POS_B (5)

class Face
{
	int size;
	float angle;
	Color **m;

	static void setColor(int c);

public:
	Face(int size, Color c);
	void drawFace();
	void drawFaceRotated(float angle,int dir);
	void drawFaceSelected(short selected);
	float getAngle();
};